#!/bin/bash

# 如果是archlinux
# - 编译工具安装
sudo pacman -S g++ \
               gcc \
               make

# - 程序编译打包依赖环境安装
sudo pacman -S libx11 \
				imlib2

# - 桌面运行依赖环境安装
sudo pacman -S xorg \
               xorg-server \
               xorg-xrandr

sudo pacman -S wmname \
				xautolock \
				fcitx5 \
				fcitx5-configtool \
				fcitx5-qt \
				fcitx5-qt5 \
				fcitx5-gtk \
				fcitx5-gtk3 \
				fcitx5-rime \
				fcitx5-im \
				fcitx5-chinese-addons \
				feh \
				flameshot \
				acpi \
				dunst \
				networkmanager \
				network-manager-applet \
				picom \
				rofi \
				kitty \
				wezterm \
				zsh \
				thunar \
				mpv \
				alsa-utils \
				pulseaudio-alsa \
				paprefs \
				pavucontrol \
				pasystray \
				bluez \
				bluez-utils \
				brightnessctl \
				wqy-zenhei \
				wqy-microhei \
				ttf-dejavu \
				git \
				tig
# aur助手
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

yay -S eww \
		lazygit \
		netease-cloud-music

# 注：Rimr简繁设置 F4或者ctrl+`

# 安裝坚果云
# 准备构建环境
sudo pacman -S libnautilus-extension \
				gvfs \
				libappindicator-gtk3 \
				python2-gobject

# 解压缩，编译和安装Nautilus插件
wget https://www.jianguoyun.com/static/exe/installer/nutstore_linux_dist_x64.tar.gz
tar zxf nutstore_linux_src_installer.tar.gz
cd nutstore_linux_src_installer && ./configure && make
sudo make install
# 重启Nautilus
nautilus -q
# 运行以下命令，自动下载和安装坚果云其他二进制组件
./runtime_bootstrap

